from pydantic import BaseModel


class ItemCreate(BaseModel):
    """创建商品请求模型"""
    name: str
    price: float
    tags: list[str] = []


class ItemResponse(ItemCreate):
    """查询商品的响应模型"""
    id: int
    ower_id: int | None = None